import * as PLANMODULAPI  from '../../../apis/planModul';
import {WeaLocaleProvider} from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;

const optionsOfSelectAWeekDay = ()=>{ 
    let optionsOfSelectAWeekDay=[
        {
            "key": "1",          
            "selected": false,
            "showname": getLabel(16100,'周一')
        },
        {
            "key": "2",            
            "selected": false,
            "showname": getLabel(16101,'周二')
        },{
            "key": "3",            
            "selected": false,
            "showname": getLabel(16102,'周三')
        },{
            "key": "4",            
            "selected": false,
            "showname": getLabel(16103,'周四')
        },{
            "key": "5",           
            "selected": false,
            "showname":getLabel(16104,'周五') 
        },{
            "key": "6",          
            "selected": false,
            "showname": getLabel(16105,'周六')
        },{
            "key": "7",         
            "selected": false,
            "showname": getLabel(16106,'周日')
        },
    ];
    return optionsOfSelectAWeekDay;
}

const optionsOfSelectAMonthDay = [];
for (let i = 1; i <= 31; i++) {
    optionsOfSelectAMonthDay.push({
        "key": "" + i,
        "selected": false,
        "showname": i + ""
    })
}



const optionsOfSelectAMonth = [];
for (let i = 1; i <= 12; i++) {
    optionsOfSelectAMonth.push({
        "key": "" + i,
        "selected": false,
        "showname": i + ""
    })
}



const optionsOfSelectAOrder =()=>{
    let optionsOfSelectAOrder=[
       {
           "key": "0",
           "selected": false,
           "showname": getLabel(18817,'正数')
       },
       {
           "key": "1",
           "selected": false,
           "showname": getLabel(18816,'倒数')
       },
   ];
   return optionsOfSelectAOrder;
}

const optionsOfSwitchWeek =()=>{
    let optionsOfSwitchWeek=[
       {
           "key": "0",
           "selected": false,
           "showname": getLabel(382823,'日期')
       },
       {
           "key": "1",
           "selected": false,
           "showname": getLabel(389991,'星期')
       },
   ];
   return optionsOfSwitchWeek;
}

const optionsOfWeekIndex =()=>{
    let optionsOfWeekIndex=[
       {
           "key": "1",
           "selected": false,
           "showname": getLabel(389717,'第一个')
       },
       {
           "key": "2",
           "selected": false,
           "showname": getLabel(389718,'第二个')
       },
       {
            "key": "3",
            "selected": false,
            "showname": getLabel(389719,'第三个')
       },
       {
            "key": "4",
            "selected": false,
            "showname": getLabel(389720,'第四个')
       },
       {
            "key": "5",
            "selected": false,
            "showname": getLabel(389721,'第五个')
       },
       {
            "key": "-1",
            "selected": false,
            "showname": getLabel(389722,'最后一个')
       },
   ];
   return optionsOfWeekIndex;
}

//定期模式其中第一个select框的options
const regularModeOptions =()=>{
    let regularModeOptions= [
        {
            key: "9",
            selected: true,
            showname: getLabel(18223,'不定期建立计划')
        },{
            key: "3",
            selected: false,
            showname: getLabel(387374,'按天')
        },{
            key: "0",
            selected: false,
            showname: getLabel(387375,'按周')
        },{
            key: "1",
            selected: false,
            showname: getLabel(387376,'按月')
        },{
            key: "2",
            selected: false,
            showname: getLabel(387377,'按年')
        },
    ];
    return regularModeOptions;
}

const durationUnitOptions =()=>{
    let durationUnitOptions=[
        {
            "key": "1",
            "selected": false,
            "showname": getLabel(1925,'天')
        },
        {
            "key": "2",
            "selected": false,
            "showname": getLabel(391,'小时')
        },{
            "key": "3",
            "selected": false,
            "showname": getLabel(15049,'分钟')
        },
    ];
    return durationUnitOptions;
}

//日程提醒方式options，需要根据后台配置动态添加，详见下面代码
let remindTypeOptions =()=>{
    let remindTypeOptions= [
    ];
    return remindTypeOptions;
}
//日程类型options，需要根据后台配置动态添加，详见下面代码
let type_n_Options = [
    // {
    //     showname: "工作安排",
    //     key: "0",
    //     selecteed: true,
    // }
];

let secretLevelOption = [];


//紧急程度options
const urgentlevelOptions =()=>{ 
    let urgentlevelOptions=[
        {
            key: "1",
            "selected": true,
            showname: getLabel(154,'一般')
        }, {
            key: "2",
            "selected": false,
            showname: getLabel(25397,'重要')
        }, {
            key: "3",
            "selected": false,
            showname: getLabel(28090,'紧急')
        },
    ];
    return urgentlevelOptions;
}

export {
    optionsOfSelectAWeekDay,
    optionsOfSelectAMonthDay,
    optionsOfSelectAMonth,
    optionsOfSelectAOrder,
    regularModeOptions,
    durationUnitOptions,
    remindTypeOptions,
    urgentlevelOptions,
    type_n_Options,
    secretLevelOption,
    optionsOfSwitchWeek,
    optionsOfWeekIndex,
};